<?php

/**
 * This is index
 * @author cooper
 *
 */

class Login extends Controller
{
	
	
	public function __construct()
	{
		parent::__construct();
	}
    
    
    public function index()
    {
        echo Hash::create('md5', 'test', HASH_KEY);
        $this->view->render('login/index') ;
	}
    
    
    /**
     *  Login action 
     * 
     *  pass POST array
     */
    public function run()
    {
        // get login  model
        $this->model->login();     
    }
    
    
    public function logout()
    {
        $this->model->logout();
    }
	
    
    
    
}